﻿using Covid.Server.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Covid.Server.Services
{

    /// <summary>
    /// 部门 仓储接口
    /// </summary>
    public interface IDepartmentRepository
    {
        /// <summary>
        /// 查询全部
        /// </summary>
        /// <returns></returns>
        Task<List<Department>> GetAllAsync();


        /// <summary>
        /// 根据ID查询
        /// </summary>
        /// <param name="departmentId"></param>
        /// <returns></returns>
        Task<Department> GetByIdAsync(int departmentId);

    }
}
